package com.example.jpademo.repository;

import com.example.jpademo.entity.User;
import com.example.jpademo.entity.UserDto;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;

import java.util.Collection;

public interface PersonRepository extends Repository<User, Integer> {
//  <T> Collection<T> findByName(String name, Class<T> type);
  Collection<UserDto> findByName(String name);
}